'Use after Initialize and AddToParent, or after loading the Designer layout.
'Supported by bar, line, comparative and stacked charts.
Dim chart As UIBarChart
chart.Initialize(Me, "Chart")
chart.AddToParent(Activity, 10dip, 10dip, 340dip, 240dip)
chart.setData(Array As String("Jan", "Feb", "Mar"), Array As Float(42, 55, 48))
'Grid lines, axis frame lines, and numeric scale values are hidden by default.
'Category names on the X-axis and individual data values remain visible.
chart.ShowGrid = True
chart.ShowAxes = True
chart.ShowYAxisValues = True
chart.BarSpacing = 3dip
$end$

